package com.app.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 军事训练综合评定表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_military_train")
public class MilitaryTrainModel {
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;//军事训练综合评定表id

    @ExcelProperty(index = 1)
    private String position_desc;//部职别

    @ExcelProperty(index = 2)
    private String name;//姓名

    @ExcelIgnore
    private Integer gender;//性别 男1女2

    @TableField(exist = false)
    @ExcelProperty(index = 3)
    private String genderText;//性别文字

    @ExcelProperty(index = 4)
    private Integer age;//年龄

    @ExcelProperty(index = 5)
    private String rankTitleText;//军衔

    @ExcelProperty(index = 6)
    private Double theoreticalScore;//理论考核分数

    @ExcelProperty(index = 7)
    private String theoreticalLevel;//理论考核评定

    @ExcelProperty(index = 8)
    private String educationLevel;//军事职业教育评定

    @ExcelProperty(index = 9)
    private Double physicalScore;//军事体育分数

    @ExcelProperty(index = 10)
    private String physicalLevel;//军事体育评定

    @ExcelProperty(index = 11)
    private String weaponScore;//轻武器操作分数

    @ExcelProperty(index = 12)
    private String weaponLevel;//轻武器操作评定

    @ExcelProperty(index = 13)
    private String postScore;//专业岗位考核分数

    @ExcelProperty(index = 14)
    private String postLevel;//专业岗位考核评定

    @ExcelProperty(index = 15)
    private String trainTotal;//综合评定

    @ExcelProperty(index = 16)
    private String remark;//备注

    @ExcelProperty(index = 17)
    private String year;//年

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;

}
